<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>ZhouBlog</title>
</head>
<body>
<!--导航-->
<nav class="ui inverted attached segment m-padded-tb-mini m-shadown-small" th:replace="_fragments :: menu(1)">
</nav>
<!--=========================中间内容==============================-->

<div class="m-padded-tb-larges m-container">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--左边内容11格-->
            <div class="eleven wide column">
                <!--===头部====-->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">文章</h3>
                        </div>
                        <div class="right aligned column">
                            共 <h2 class="ui  header m-font-thin m-inline-block broadcast"
                                  th:text="${blogPageInfo.getTotal()}">18</h2> 篇
                        </div>
                    </div>
                </div>
                <!--======中间文章=======-->
                <div class="ui attached segment">
                    <div class="ui padded   segment m-padded-lr-medium  " th:each="blog : ${blogPageInfo.list}">
                        <div class="ui middle aligned  mobile reversed  stackable grid m-padded-tb-small m-height">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.title}"
                                                         class="m-font-black" target="_parent">壮我道宗！</a></h3>
                                <p class="m-font"><a th:href="@{/blog/{id}(id=${blog.id})}" th:text="|${blog.description}......|" class="m-font-black">“林动师兄，请壮我道宗！”
                                    低沉如雷鸣般的声音，在这天地间轰然的回荡起来，那股莫名的情感，重重的撞击在林动的心头，这一刻，巨大的酸楚，冲击着胸膛，令得他那眼睛也是泛红了起来。</a></p>
                                <div class="ui  grid ">
                                    <!--左边-->

                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/touxiang.jpg" th:src="@{${blog.user.avatar}}"
                                                     style="width: 22px;height: 22px"
                                                     class="ui avatar image">
                                                <div class="content "
                                                     style="margin-left: 4px;font-size:8px;font-weight: 660"><span
                                                        th:text="${blog.user.nickname}">ZhouChb</span>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon " style="width: 100px!important;">&nbsp;<span
                                                        th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-8-29</span></i>
                                            </div>
                                            <div class="item ">
                                                <i class="eye icon ">&nbsp;<span th:text="${blog.views}">8888</span></i>
                                            </div>
                                        </div>
                                    </div>
                                    <!--右边标签-->
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank"
                                           class="ui mini orange label basic  m-font-thin-normal m-padded-mini"
                                           th:text="${blog.type.name}">认识升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column m-padded-tb-mini">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_parent"  ><img class="ui rounded image "
                                                                 src="../static/images/liuxing.png"
                                                                 th:src="@{${blog.firstPicture}}" style="max-height: 142px !important;" ></a>
                                <!--    style="width: 13em;height: 9em"-->
                            </div>

                        </div>
                    </div>

                    <!--/*-->
                    <div class="ui padded vertical segment m-padded-tb-medim">
                        <div class="ui  mobile reversed  stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">壮我道宗！</h3>
                                <p class="m-font">“林动师兄，请壮我道宗！”
                                    低沉如雷鸣般的声音，在这天地间轰然的回荡起来，那股莫名的情感，重重的撞击在林动的心头，这一刻，巨大的酸楚，冲击着胸膛，令得他那眼睛也是泛红了起来。</p>
                                <div class="ui grid">
                                    <!--左边-->
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/touxiang.jpg"
                                                     th:src="@{/images/touxiang.jpg}" style="width: 22px;height: 22px"
                                                     class="ui avatar image">
                                                <div class="content "
                                                     style="margin-left: 4px;font-size:8px;font-weight: 660">ZhouChb
                                                </div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i> 2021-8-29
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i> &nbsp;8888
                                            </div>
                                        </div>
                                    </div>
                                    <!--右边标签-->
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank"
                                           class="ui mini orange label basic  m-font-thin-normal m-padded-mini">认识升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank"><img class="ui rounded image"
                                                                 src="../static/images/liuxing.png"
                                                                 th:src="@{/images/liuxing.png}"></a>
                                <!--    style="width: 13em;height: 9em"-->
                            </div>

                        </div>
                    </div>
                    <div class="ui padded vertical segment m-padded-tb-medim">
                        <div class="ui  mobile reversed  stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">壮我道宗！</h3>
                                <p class="m-font">“林动师兄，请壮我道宗！”
                                    低沉如雷鸣般的声音，在这天地间轰然的回荡起来，那股莫名的情感，重重的撞击在林动的心头，这一刻，巨大的酸楚，冲击着胸膛，令得他那眼睛也是泛红了起来。</p>
                                <div class="ui grid">
                                    <!--左边-->
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/touxiang.jpg"
                                                     th:src="@{/images/touxiang.jpg}" style="width: 22px;height: 22px"
                                                     class="ui avatar image">
                                                <div class="content "
                                                     style="margin-left: 4px;font-size:8px;font-weight: 660">ZhouChb
                                                </div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i> 2021-8-29
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i> &nbsp;8888
                                            </div>
                                        </div>
                                    </div>
                                    <!--右边标签-->
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank"
                                           class="ui mini orange label basic  m-font-thin-normal m-padded-mini">认识升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank"><img class="ui rounded image"
                                                                 src="../static/images/liuxing.png"
                                                                 th:src="@{/images/liuxing.png}"></a>
                                <!--    style="width: 13em;height: 9em"-->
                            </div>

                        </div>
                    </div>
                    <div class="ui padded vertical segment m-padded-tb-medim">
                        <div class="ui  mobile reversed  stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header">壮我道宗！</h3>
                                <p class="m-font">“林动师兄，请壮我道宗！”
                                    低沉如雷鸣般的声音，在这天地间轰然的回荡起来，那股莫名的情感，重重的撞击在林动的心头，这一刻，巨大的酸楚，冲击着胸膛，令得他那眼睛也是泛红了起来。</p>
                                <div class="ui grid">
                                    <!--左边-->
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/touxiang.jpg"
                                                     th:src="@{/images/touxiang.jpg}" style="width: 22px;height: 22px"
                                                     class="ui avatar image">
                                                <div class="content "
                                                     style="margin-left: 4px;font-size:8px;font-weight: 660">ZhouChb
                                                </div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i> 2021-8-29
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i> &nbsp;8888
                                            </div>
                                        </div>
                                    </div>
                                    <!--右边标签-->
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank"
                                           class="ui mini orange label basic  m-font-thin-normal m-padded-mini">认识升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank"><img class="ui rounded image"
                                                                 src="../static/images/liuxing.png"
                                                                 th:src="@{/images/liuxing.png}"></a>
                                <!--    style="width: 13em;height: 9em"-->
                            </div>

                        </div>
                    </div>
                    <!--*/-->
                </div>

                <!--========页码========-->
                <div class="ui bottom attached segment">
                    <div class="ui middle  aligned two column grid "> <!---->
                        <div class="column">
                            <a href="#" th:href="@{/(pn=${blogPageInfo.pageNum}-1)}" th:classappend="${blogPageInfo.isFirstPage}?'disabled'" class="ui mini link blue  button m-margin-left-big">上一页</a>
                        </div>
                        <div class=" right aligned  column"><!---->
                            <a href="#" th:href="@{/ (pn=${blogPageInfo.pageNum}+1)}" th:classappend="${blogPageInfo.isLastPage}?'disabled'" class="ui mini link blue  button m-margin-right-big">下一页</a>
                        </div>
                    </div>
                </div>
            </div>

            <!--右边内容5格-->
            <div class="five wide column">
                <!--分类框-->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon orange"></i><span class="m-font-thin-bold ">分类</span>
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{/types/-1}" target="_blank">更多 <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <!--分类卡片-->
                    <div class="ui green segment">
                        <div class="ui fluid vertical menu" >
                            <a href="#" th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item" th:each="type : ${types}">
                                <span th:text="${type.name}">学习日志</span>
                                <div class="ui red basic mini avatar  label" th:text="${type.typeCount}">18</div>
                            </a>
                        </div>
                    </div>
                </div>
                <!--标签框-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="tags icon purple"></i><span class="m-font-thin-bold"> 标签</span>
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{/tags/-1}" target="_blank">更多 <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>

                    <div class="ui green segment">
                        <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" class="ui olive tag label m-margin-tb-small " th:each="tag : ${tags}">
                            <span th:text="${tag.name}">斗破苍穹</span>
                            <div class="detail" th:text="${tag.tagCount}" >28</div>
                        </a>


                    </div>

                </div>
                <!--最新推荐-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <i class="bookmark icon blue"></i><span class="m-font-thin-bold">最新文章推荐</span>
                    </div>
                    <div class="ui  segment" th:each="blogRecommend : ${listBlogRecommend}">
                     <i class="icon teal clipboard outline"></i>   <a href="#" th:href="@{/blog/{id}(id=${blogRecommend.id})}" target="_blank" class="m-font-black m-font-thin-normal" th:text="${blogRecommend.title}">用户故事 (User Story)</a>
                    </div>

                </div>
                <!--二维码-->
                <h5 class="ui horizontal divider header m-margin-top-large">扫码关注我</h5>
                <div class="ui centered card " style="width: 11em">
                    <img src="../static/images/meWechat.jpg" th:src="@{/images/meWechat.jpg}"  alt=""
                         class="ui rouded image">
                </div>
            </div>
        </div>
    </div>
</div>
<br>
<br>
<!--========================底部footer===============================-->
<!---->
<footer class="ui inverted vertical segment m-padded-tb-big" th:replace="_fragments :: footer">
    <div class="ui center aligned container">
        <div class="ui stackable inverted divided grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/meWechat.jpg" class="ui rounded image" alt="" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header  m-font-spaced" style="font-weight: normal">最新博客</h4>
                <div class="ui inverted link list m-font-thin">
                    <a href="#" class="item">笔记01</a>
                    <a href="#" class="item">笔记01</a>
                    <a href="#" class="item">笔记01</a>
                </div>
            </div>

            <div class="five wide column">
                <h4 class="ui inverted header" style="font-weight: normal">Blog介绍</h4>
                <p class="m-font-thin m-font-spaced m-opacity-mini ">修炼一途，乃窃阴阳，夺造化，转涅槃，握生死，掌轮回。 武之极，破苍穹，动乾坤！</p>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header  m-font-spaced" style="font-weight: normal">联系我</h4>
                <div class="ui inverted  list" style="text-align: left;margin-left: 30px">
                    <div class="item">
                        <img src="../static/images/qq.png" style="width: 20px">
                        <span class="m-font-thin m-opacity-mini"
                              style="font-size: 14px">&nbsp;&nbsp;QQ：2251073096</span>
                    </div>
                    <div class="item">
                        <img src="../static/images/email.png" style="width: 18px">
                        <span class="m-opacity-mini" style="font-size: 14px">&nbsp;&nbsp;Eamil：2251073096@qq.com</span>
                    </div>
                </div>
            </div>
        </div>

        <div class="ui inverted section divider"></div>
        <p class="m-font-thin m-font-spaced m-opacity-tiny" style="font-size: 13px">Copyright © 2021 - 2022 ZhouChB All
            Rights Reserved V.1.0</p>
    </div>
</footer>
<!--<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"/>-->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/js/semantic.min.js" th:src="@{/js/semantic.min.js}"></script>
<script src="../static" th:src="@{/js/my.js}"></script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });

</script>

<!--<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>-->
</body>
</html>